package com.yyl.rbacs.sys.controller;

import com.yyl.rbacs.sys.entity.SysDept;
import com.yyl.rbacs.sys.service.ISysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 部门管理 前端控制器
 * </p>
 *
 * @author YuanSir
 * @since 2022-10-28
 */
@RestController
@RequestMapping("/sys/dept")
public class SysDeptController {
    
    @Autowired
    ISysDeptService deptService;
    
    @GetMapping("/list")
    public List<SysDept> deptList(@RequestParam Map<String, String> params){
    
        return deptService.queryDeptByMap(params);
        
//        return deptService.list();
    
    }

}
